maximum likelihood estimation for normal distribution